import React from "react"
import 'antd/dist/antd.css';
import { BrowserRouter, Routes, Route } from "react-router-dom"
import router from "./router";


function App() {
  return (
    <BrowserRouter>
          <Routes>
            {
              router.map((v, i) => <Route path={v.path} element={v.element} key={i}></Route>)
            }
          </Routes>
    </BrowserRouter>
  )
}

export default App
